package com.tbit.uqbike.client.exception;

import com.tbit.uqbike.client.pojo.Machine;
import com.tbit.uqbike.client.service.TerControlService;

/**
 * 基础异常
 *
 * @author Leon
 * 2017年2月24日 下午4:54:56
 */
public class BaseException extends RuntimeException {
    private static final long serialVersionUID = 1L;


    public BaseException() {
    }

    public BaseException(String msg) {
        super(msg);
    }

    public BaseException(String code, String msg) {
        super(code + "%" + msg);
    }

    public BaseException(String code, String msg, TerControlService terControlService, Machine machine, Integer userId, Integer type, String orderNO, Integer parkPointId, String message, String remark) {
        super(code + "%" + msg);
        terControlService.sendErrorMsg(machine, userId, type, code, orderNO, parkPointId, message, remark);
    }
}
